package cn.iot.sys.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生学籍类
 */
@Data
@TableName("t_sys_student")
public class SysStudent implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    private int id;//主键id
    @TableField("studentId")
    private String studentId;//学号
    @TableField("studentName")
    private String studentName;//学生姓名
    @TableField("formerName")
    private String formerName;//曾用名
    @TableField("phoneNumber")
    private String phoneNumber;//手机号///
    @TableField("nativePlace")
    private String nativePlace;//籍贯////
    @TableField("sex")
    private int sex;//性别////
    @TableField("nation")
    private String nation;//民族///
    @TableField("politicalId")
    private int politicalId;//政治面貌id////
    @TableField("classId")
    private int classId;//班级id////
    @TableField("oldGraduationSchool")
    private String oldGraduationSchool;//原毕业学校////
    @TableField("enrollmentDate")
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN, timezone = "GMT+8")
    private Date enrollmentDate;//入学日期/////
    @TableField("residenceProvince")
    private String residenceProvince;//户籍省份
    @TableField("residenceTown")
    private String residenceTown;//户籍市
    @TableField("documentId")
    private int documentId;//证件id
    @TableField("documentNumber")
    private String documentNumber;//证件号
    @TableField("smartCard")
    private String smartCard;//一卡通卡号////
    @TableField("address")
    private String address;//地址////
    @TableField("postalCode")
    private String postalCode;//邮政编码////
    @TableField("homePhone")
    private String homePhone;//家庭电话////
    @TableField("hobby")
    private String hobby;//爱好////
    @TableField("awardSituation")
    private String awardSituation;//获奖情况////
    @TableField("photo")
    private String photo;//学生照片
    @TableField("create_date")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date createDate;//创建时间
    @TableField("createName")
    private String createName;//创建人
    @TableField("modify_date")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date modifyDate;//修改时间
    @TableField("modifyName")
    private String modifyName;//修改人
    @TableField(exist = false)
    private String politicalName;//政治面貌名称
    @TableField(exist = false)
    private String documentName;//证件名称
    @TableField(exist = false)
    private String className;//班级名称
    @TableField("guardianName")
    private String guardianName;//监护人姓名
    @TableField("relation")
    private String relation;//关系
    @TableField("guardianPhone")
    private String guardianPhone;//监护人电话
    @TableField("totalAmount")
    private Float totalAmount;//缴费金额
    @TableField("paymentCollection")
    private String paymentCollection;//缴费id字符串
    @TableField("hostelId")
    private int hostelId;//宿舍id
    @TableField(exist = false)
    private String levelName;//宿舍位置
    @TableField("status")
    private int status;//状态
}
